<div class="box box-default">
  <div class="box-body">
    <div class="row">
      <div class="col-md-12">
        <div class="nav-tabs-custom">
          <ul class="nav nav-tabs">
            <li class="active" id="baseTab">
              <a href="#tab_1" data-toggle="tab" id="baseInfo" (click)="clearFileType()">基础信息</a>
            </li>
            <li *ngIf="operate=='edit'" id="attachTab">
              <a href="#tab_2" data-toggle="tab" id="attachInfo" (click)="loadFileTree()">产品文件</a>
            </li>
            <li *ngIf="operate=='edit'" id="investTab">
              <a href="#tab_7" data-toggle="tab" id="investInfo" (click)="clearFileType()">投资经理</a>
            </li>
          </ul>
          <div class="tab-content" id="11">
            <!-- 基础信息 -->
            <div class="tab-pane active" id="tab_1">
              <form class="form-horizontal" #otmAddForm="ngForm">
                <div class="box box-default">
                  <div class="box-body">
                    <!--投资发展部维护的字段-->
                    <div class="form-group">
                      <label class="col-lg-2 text-right">
                        <span class="span-style">*</span>产品名称</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="128" [(ngModel)]="otmAddOrEditBody.sFullName" name="sFullName">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">
                        <span class="span-style">*</span>产品简称</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="128" [(ngModel)]="otmAddOrEditBody.sFundName" name="sFundName">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">数字编码</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="20" [(ngModel)]="otmAddOrEditBody.sFundNumCode" name="sFundNumCode">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">产品S码</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sRecordCode" name="sRecordCode">
                      </div>
                    </div>

                    <div class="form-group" style="margin-top:10px">
                      <label class="col-lg-2 text-right">托管人</label>
                      <div class="col-lg-3">
                        <!-- <input class="form-control form-fields" type="text" maxlength="500" [(ngModel)]="otmAddOrEditBody.sTrustee" name="sTrustee"> -->
                        <select class="form-control select2" maxlength="25" id="sTrusteeSelected" [(ngModel)]="otmAddOrEditBody.sTrustee" name="sTrustee">
                          <option [value]="''">--请选择--</option>
                          <option [value]="item.sItemValue" *ngFor="let item of distionary.TRUSTEE">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <label class="col-lg-3 text-right">托管人统一社会信用编码 </label>
                      <div class="col-lg-3 text-right">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sTrusteeSociologyCode" name="sTrusteeSociologyCode">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">产品研究员</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sResearcher" name="sResearcher">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">销售员</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sSalesman" name="sSalesman">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">产品类型</label>
                      <div class="col-lg-3">
                        <input class="form-control" type="text" id="sFundType" placeholder="一对多专户" name="sFundType" disabled>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">产品类别</label>
                      <div class="col-lg-3">
                        <select class="form-control" type="text" [(ngModel)]="otmAddOrEditBody.sFundCategory" name="sFundCategory">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.NEW_FUND_CATEGORY">{{item.sItemValue}}</option>
                        </select>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-lg-2 text-right">核心表产品类型</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sKernelType" [(ngModel)]="otmAddOrEditBody.sKernelType">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.KERNEL_TYPE">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">生效日</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dEffective"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}">
                        </div>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">发行备案日</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dIssueRecord"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}">
                        </div>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否结构化</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsStructure" name="sIsStructure">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">是否保本</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsBreakeven" name="sIsBreakeven">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否开放申赎</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsProductopen" name="sIsProductopen">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">是否通道类专户</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsAisle" name="sIsAisle" (change)="otmIsAisle()">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否专项</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsItem" [(ngModel)]="otmAddOrEditBody.sIsItem">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group" style="margin-top:10px">
                      <label class="col-lg-2 text-right">是否资产证券化业务</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsProperty" [(ngModel)]="otmAddOrEditBody.sIsProperty">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否非标产品</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsNostandard" [(ngModel)]="otmAddOrEditBody.sIsNostandard">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group" style="margin-top:10px">
                      <label class="col-lg-2 text-right">是否挂牌转让</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsHand" [(ngModel)]="otmAddOrEditBody.sIsHand">
                            <option [value]="''">--请选择--</option>
                            <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.ATTORN">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否FOF</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsFof" [(ngModel)]="otmAddOrEditBody.sIsFof">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">是否参与股票质押业务</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsStockpledge" [(ngModel)]="otmAddOrEditBody.sIsStockpledge">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">提供投资建议的第三方机构</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" id="sCapitalpro" name="sCapitalpro" [(ngModel)]="otmAddOrEditBody.sCapitalpro"
                          disabled>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">提供投资建议的第三方机构类型</label>
                      <div class="col-lg-3">
                        <select class="form-control" id="sCapitalproType" disabled name="sCapitalproType" [(ngModel)]="otmAddOrEditBody.sCapitalproType">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.CAPITALPRO_TYPE">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">单一项目或证券是否支付固定利率</label>
                      <div class="col-lg-3">
                        <select class="form-control" id="sOnlyPayerfixed" name="sOnlyPayerfixed" [(ngModel)]="otmAddOrEditBody.sOnlyPayerfixed">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.ONLY_PAYERFIXED">{{item.sItemValue}}</option>
                        </select>
                      </div>

                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">单一项目或证券固定利率</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" [min]="0" maxlength="9" #sOnlyFixedrate="ngModel" id="sOnlyFixedrate"
                          name="sOnlyFixedrate" [(ngModel)]="otmAddOrEditBody.sOnlyFixedrate">
                        <p *ngIf="sOnlyFixedrate.errors?.min" class="errorTip">请输入正数</p>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">预警线</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sFthreshold" name="sFthreshold">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">平仓线</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sCloseout" name="sCloseout">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">管理费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" [(ngModel)]="otmAddOrEditBody.sManagementFee" name="sManagementFee"
                          [attr.title]="otmAddOrEditBody.sManagementFee">
                        <!-- <input class="form-control form-fields" [min]="0" maxlength="50" #sManagementFee="ngModel" [(ngModel)]="otmAddOrEditBody.sManagementFee"
                          name="sManagementFee">
                        <p *ngIf="sManagementFee.errors?.min" class="errorTip">请输入正数</p> -->
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">托管费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" [(ngModel)]="otmAddOrEditBody.sTrusteeFee" name="sTrusteeFee" [attr.title]="otmAddOrEditBody.sTrusteeFee">
                        <!-- <input class="form-control form-fields" [min]="0" maxlength="50" #sTrusteeFee="ngModel" [(ngModel)]="otmAddOrEditBody.sTrusteeFee"
                          name="sTrusteeFee">
                        <p *ngIf="sTrusteeFee.errors?.min" class="errorTip">请输入正数</p> -->
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">认购费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="250" [(ngModel)]="otmAddOrEditBody.sSubscriptionFee" name="sSubscriptionFee">
                      </div>
                      <!-- <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="50" #sSubscriptionFee="ngModel" [(ngModel)]="otmAddOrEditBody.sSubscriptionFee"
                          name="sSubscriptionFee">
                        <p *ngIf="sSubscriptionFee.errors?.min" class="errorTip">请输入正数</p>
                      </div> -->
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">参与费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="50" #sJoinFee="ngModel" [(ngModel)]="otmAddOrEditBody.sJoinFee"
                          name="sJoinFee">
                        <p *ngIf="sJoinFee.errors?.min" class="errorTip">请输入正数</p>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">退出费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="50" #sQuitFee="ngModel" [(ngModel)]="otmAddOrEditBody.sQuitFee"
                          name="sQuitFee">
                        <p *ngIf="sQuitFee.errors?.min" class="errorTip">请输入正数</p>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">其他费率(%)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="50" #sOtherFee="ngModel" [(ngModel)]="otmAddOrEditBody.sOtherFee"
                          name="sOtherFee">
                        <p *ngIf="sOtherFee.errors?.min" class="errorTip">请输入正数</p>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">业绩比较基准</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" type="text" title="{{otmAddOrEditBody.sBenchmark}}" [(ngModel)]="otmAddOrEditBody.sBenchmark"
                          name="sBenchmark">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">业绩报酬</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" type="text" title="{{otmAddOrEditBody.sCarriedInterest}}" [(ngModel)]="otmAddOrEditBody.sCarriedInterest"
                          name="sCarriedInterest">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">估值方法</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sValuationMethod" name="sValuationMethod">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.VALUATION_METHOD">{{item.sItemValue}}</option>
                        </select>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-lg-2 text-right">是否存在预期年化收益率</label>
                      <div class="col-lg-3">
                        <select class="form-control" name="sIsIncomerate" [(ngModel)]="otmAddOrEditBody.sIsIncomerate">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <!--我是分割线-->
                    <div style="border-top: 4px solid rgb(182, 180, 180);width:85%;margin-left:7%;margin-bottom:15px"></div>
                    <!--我是分割线-->
                    <!--客销部维护的字段-->
                    <div class="form-group">
                      <label class="col-lg-2 text-right">产品代码</label>
                      <div class="col-lg-3">
                        <input class="form-control" type="text" id="sFundCode" maxlength="20" [(ngModel)]="otmAddOrEditBody.sFundCode" name="sFundCode">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">托管户开户行</label>
                      <div class="col-lg-3">
                        <!-- <select class="form-control" type="text" [(ngModel)]="otmAddOrEditBody.sBank" name="sBank">
                        <option [value]="''" selected="selected">--请选择--</option>
                        <option [value]="item.sInstiCode" *ngFor="let item of bankDictionaryList">{{item.sFullName}}</option>
                      </select> -->
                        <input class="form-control" type="text" maxlength="32" [(ngModel)]="otmAddOrEditBody.sBank" name="sBank">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">实际出资人</label>
                      <div class="col-lg-3">
                        <input class="form-control" type="text" maxlength="25" [(ngModel)]="otmAddOrEditBody.sLp" name="sLp">
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">起始运作日期</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" id="dBegin" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dBegin"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}" (ngModelChange)="countMonth()">
                        </div>
                      </div>
                    </div>

                    <div class="form-group">

                      <label class="col-lg-2 text-right">到期日</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" id="dEnd" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dEnd"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}">
                        </div>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">无固定期限:</label>
                      <div class="col-lg-3">
                        <div class="radio radio-info radio-inline">
                          <input type="radio" id="inlineRadio1" value="1" [(ngModel)]="otmAddOrEditBody.sIsContractPeriod" name="sIsContractPeriod"
                            (ngModelChange)="IsContractPeriod()">
                          <label for="inlineRadio1">是</label>
                        </div>
                        <div class="radio radio-info radio-inline">
                          <input type="radio" id="inlineRadio2" value="0" [(ngModel)]="otmAddOrEditBody.sIsContractPeriod" name="sIsContractPeriod"
                            (ngModelChange)="IsContractPeriod()">
                          <label for="inlineRadio2">否</label>
                        </div>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">合同期限(月)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="9" digits #nContractPeriod="ngModel" id="nContractPeriod" [(ngModel)]="otmAddOrEditBody.nContractPeriod"
                          name="nContractPeriod" (ngModelChange)="countMonth()">
                        <p *ngIf="nContractPeriod.errors?.digits" class="errorTip">请输入正整数</p>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否自动续约</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsRenewal" name="sIsRenewal">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">起始规模(亿元)</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="50" #sFoundedSize="ngModel" [(ngModel)]="otmAddOrEditBody.sFoundedSize"
                          name="sFoundedSize">
                        <p *ngIf="sFoundedSize.errors?.min" class="errorTip">请输入正数</p>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">投资者数量</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="9" digits #nInvestorCount="ngModel" [(ngModel)]="otmAddOrEditBody.nInvestorCount"
                          name="nInvestorCount">
                        <p *ngIf="nInvestorCount.errors?.digits" class="errorTip">请输入正整数</p>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">销售渠道</label>
                      <div class="col-lg-3">
                        <select class="form-control select2 fields-select" multiple="multiple" name="salesSelectList" [(ngModel)]="salesSelectList">
                          <option [value]="item.sItemKey" *ngFor="let item of saleslList">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">发行起始日</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dIssue"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}">
                        </div>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">发行结束日</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" type="text" style="background: white; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dIssueEnd"
                            mwlFlatpickr [ngModelOptions]="{standalone: true}">
                        </div>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">参与开放规定</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="128" [(ngModel)]="otmAddOrEditBody.sJoinOpenStipulate" name="sJoinOpenStipulate">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">所在TA</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sWhichTa" name="sWhichTa">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option value="1">自建TA</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">币种</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sCurrency" name="sCurrency">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.CURRENCY">{{item.sItemValue}}</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">链接基金</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsLinkfund" name="sIsLinkfund">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">风险收益特征</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" type="text" title="{{otmAddOrEditBody.sRiskReturn}}" [(ngModel)]="otmAddOrEditBody.sRiskReturn"
                          name="sRiskReturn">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">净值位数</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.nValueDec" name="nValueDec">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.VALUE_DEC">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">投资目标</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" maxlength="2000" type="text" title="{{otmAddOrEditBody.sInvestTarget}}" [(ngModel)]="otmAddOrEditBody.sInvestTarget"
                          name="sInvestTarget">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">网站基金属性</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sWsFundAttribute" name="sWsFundAttribute">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.WS_FUND_ATTRIBUTE">{{item.sItemValue}}</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">网站基金性质</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sWsFundProperty" name="sWsFundProperty">
                          <option [value]="''" selected="selected">--请选择--</option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.WS_FUND_PROPERTY">{{item.sItemValue}}</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">网站是否显示</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsShowWs" name="sIsShowWs">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">显示顺序</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" [min]="0" maxlength="9" digits #nWsShowOrder="ngModel" [(ngModel)]="otmAddOrEditBody.nWsShowOrder"
                          name="nWsShowOrder">
                        <p *ngIf="nWsShowOrder.errors?.digits" class="errorTip">请输入正整数</p>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">发布时是否过滤</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsFilter" name="sIsFilter">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">是否仅周末发布</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsPublichWeekend" name="sIsPublichWeekend">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">IPAD是否显示</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sIsShowIpad" name="sIsShowIpad">
                          <option value="1">是</option>
                          <option value="0">否</option>
                        </select>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">终止方式</label>
                      <div class="col-lg-3">
                        <select class="form-control" [(ngModel)]="otmAddOrEditBody.sStopType" name="sStopType" disabled>
                          <option [value]="''" selected="selected"></option>
                          <option [value]="item.sItemKey" *ngFor="let item of dictionaryList.STOP_TYPE">{{item.sItemValue}}</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">终止日期</label>
                      <div class="col-lg-3">
                        <div class="input-group date form_datetime">
                          <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                          </span>
                          <input class="form-control" type="text" style="background: #eee; cursor: pointer;" [(ngModel)]="otmAddOrEditBody.dStop" mwlFlatpickr
                            [ngModelOptions]="{standalone: false}" name="dStop" disabled>
                        </div>
                      </div>
                      <div class="col-lg-1"></div>
                      <label class="col-lg-2 text-right">终止原因</label>
                      <div class="col-lg-3">
                        <input class="form-control form-fields" type="text" maxlength="250" [attr.title]="otmAddOrEditBody.sStopReason" [(ngModel)]="otmAddOrEditBody.sStopReason"
                          name="sStopReason" disabled>
                      </div>
                    </div>

                    <!--我是分割线-->
                    <div style="border-top: 1px solid #ddd;width:85%;margin-left:7%;margin-bottom:15px"></div>
                    <!--我是分割线-->

                    <div class="form-group">
                      <label class="col-lg-2 text-right">投资范围</label>
                      <div class="col-lg-9">
                        <textarea name="" maxlength="2000" cols="20" rows="5" style="width:100%" [(ngModel)]="otmAddOrEditBody.sInvestScope" name="sInvestScope"></textarea>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-lg-2 text-right">备注</label>
                      <div class="col-lg-9">
                        <textarea name="" id="" cols="20" rows="5" maxlength="2000" style="width:100%" [(ngModel)]="otmAddOrEditBody.sRemark" name="sRemark"></textarea>
                      </div>
                    </div>

                  </div>
                </div>

                <div class="form-group" style="margin-top: 15px">
                  <div class="col-lg-1 col-lg-offset-5">
                    <!-- 未成立新增按钮 -->
                    <button *ngIf="operate=='add' && index=='new'&&_.includes(menuResourceSet,'btn-otm-add')" type="button" (click)="otmAddOrEditBasicInfo('add')"
                      class="btn btn-primary" [disabled]="sOnlyFixedrate.errors?.min || sJoinFee.errors?.min || sQuitFee.errors?.min ||
                    sOtherFee.errors?.min || nContractPeriod.errors?.digits ||  sFoundedSize.errors?.min || nInvestorCount.errors?.digits || nWsShowOrder.errors?.digits">
                      <i class="fa fa-save"></i>保存
                    </button>
                    <!-- 未成立修改按钮 -->
                    <button *ngIf="operate=='edit' && index=='wcl'&&_.includes(menuResourceSet,'btn-otm-save-jcxx')" type="button" (click)="otmAddOrEditBasicInfo('edit')"
                      class="btn btn-primary" [disabled]="sOnlyFixedrate.errors?.min || sJoinFee.errors?.min || sQuitFee.errors?.min || sOtherFee.errors?.min || 
                      nContractPeriod.errors?.digits || sFoundedSize.errors?.min || nInvestorCount.errors?.digits || nWsShowOrder.errors?.digits">
                      <i class="fa fa-save"></i>保存
                    </button>
                    <!-- 已成立修改按钮 -->
                    <button *ngIf="operate=='edit' && index=='ycl'&&_.includes(menuResourceSet,'btn-otm-save-jcxx')" type="button" (click)="otmCheckProductEdit()"
                      class="btn btn-primary" [disabled]="sOnlyFixedrate.errors?.min ||  sJoinFee.errors?.min || sQuitFee.errors?.min || sOtherFee.errors?.min || 
                      nContractPeriod.errors?.digits || sFoundedSize.errors?.min || nInvestorCount.errors?.digits || nWsShowOrder.errors?.digits">
                      <i class="fa fa-save"></i>保存
                    </button>
                  </div>
                </div>
              </form>
            </div>

            <!-- 产品文件 -->
            <div class="tab-pane" id="tab_2">
              <!-- 折叠 -->
              <div class="row">
                <div class="col-md-12">
                  <!-- Custom Tabs 1-1-->
                  <div class="nav-tabs-custom remove-border">
                    <ul class="nav nav-tabs ul-change" style="border-bottom-width: 0px;">
                      <li id="cpfaYDD_List" *ngIf="_.includes(activeFileList,'cpfaYDD')">
                        <a id="cpfaYDD_Content" href="#tab_9" data-toggle="tab">产品方案</a>
                      </li>
                      <li id="flwjYDD_List" *ngIf="_.includes(activeFileList,'flwjYDD')">
                        <a id="flwjYDD_Content" href="#tab_10" data-toggle="tab">法律文件</a>
                      </li>
                      <li id="baYDD_List" *ngIf="_.includes(activeFileList,'baYDD')">
                        <a id="baYDD_Content" href="#tab_11" data-toggle="tab">备案</a>
                      </li>
                      <li id="bcxyYDD_List" *ngIf="_.includes(activeFileList,'bcxyYDD')">
                        <a id="bcxyYDD_Content" href="#tab_12" data-toggle="tab">补充协议</a>
                      </li>
                      <li id="zhxxYDD_List" *ngIf="_.includes(activeFileList,'zhxxYDD')">
                        <a id="zhxxYDD_Content" href="#tab_13" data-toggle="tab">账户信息</a>
                      </li>
                      <li id="tzxxYDD_List" *ngIf="_.includes(activeFileList,'tzxxYDD')">
                        <a id="tzxxYDD_Content" href="#tab_14" data-toggle="tab">投资信息</a>
                      </li>
                      <li id="qsxxYDD_List" *ngIf="_.includes(activeFileList,'qsxxYDD')">
                        <a id="qsxxYDD_Content" href="#tab_15" data-toggle="tab">清算信息</a>
                      </li>
                      <li id="qtYDD_List" *ngIf="_.includes(activeFileList,'qtYDD')">
                        <a id="qtYDD_Content" href="#tab_16" data-toggle="tab">其他</a>
                      </li>
                      <li id="history_List" *ngIf="_.includes(activeFileList,'historyYDD')">
                        <a id="history_Content" href="#tab_17" data-toggle="tab">历史附件</a>
                      </li>
                    </ul>
                    <div class="tab-content" id="12" style="padding:0px !important">
                      <!-- 产品方案开始 -->
                      <div class="tab-pane" id="tab_9">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of cpfaYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index!=='yzz'" title="点击新增" (click)="addSubTreeItem(item,'cpfaYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'cpfaYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'cpfaYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 产品方案结束 -->
                      <!-- 法律文件开始 -->
                      <div class="tab-pane" id="tab_10">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of flwjYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'flwjYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'flwjYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'flwjYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 法律文件结束 -->
                      <!-- 备案开始 -->
                      <div class="tab-pane" id="tab_11">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of baYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'baYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'baYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'baYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 备案结束 -->
                      <!-- 补充协议开始 -->
                      <div class="tab-pane" id="tab_12">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of bcxyYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'bcxyYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'bcxyYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'bcxyYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 补充协议结束 -->
                      <!-- 账户信息开始 -->
                      <div class="tab-pane" id="tab_13">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of zhxxYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'zhxxYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'zhxxYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'zhxxYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 账户信息结束 -->
                      <!-- 投资信息开始 -->
                      <div class="tab-pane" id="tab_14">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of tzxxYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'tzxxYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'tzxxYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'tzxxYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 投资信息结束 -->
                      <!-- 清算信息开始 -->
                      <div class="tab-pane" id="tab_15">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of qsxxYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'qsxxYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>
                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'qsxxYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'qsxxYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 清算信息结束 -->
                      <!-- 其他开始 -->
                      <div class="tab-pane" id="tab_16">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of qtYDDDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'qtYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>

                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'qtYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'qtYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 其他结束 -->
                      <!-- 历史附件开始 -->
                      <div class="tab-pane" id="tab_17">
                        <table class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                          <thead>
                            <tr>
                              <th class="width-20">附件类型</th>
                              <th class="width-25">附件名</th>
                              <th class="width-10">附件类型</th>
                              <th class="width-12">上传者</th>
                              <th class="width-15">上传时间</th>
                              <th class="width-13">操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr *ngFor="let item of historyDataList">
                              <td *ngIf="item.sType!=''" [attr.rowspan]="item.subNodeL" style="background-color:white; border:0.1px solid #E9E9E9">
                                {{item.sType}}
                                <a *ngIf="index !== 'yzz'" title="点击新增" (click)="addSubTreeItem(item,'historyYDD')">
                                  <i class="fa fa-plus-circle" style="margin-left:2px;"></i>
                                </a>
                              </td>

                              <td class="short_name" [attr.title]="item.sAttachName">
                                <span *ngIf="item.editStatus==0&&index!=='yzz'">
                                  <a (dblclick)="editFileName(item,'historyYDD')">{{item.sAttachName}}</a>
                                </span>
                                <span *ngIf="item.editStatus==0&&index=='yzz'">{{item.sAttachName}}</span>
                                <div *ngIf="item.editStatus==1">
                                  <div class="input-group">
                                    <input class="form-control" [(ngModel)]="item.fileName" name="filename">
                                    <a class="input-group-addon" (click)="changeFileName(item)">确定</a>
                                    <a class="input-group-addon" (click)="cancelEditFileName(item,'historyYDD')">取消</a>
                                  </div>
                                </div>
                              </td>
                              <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                              <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                              <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                              <td>
                                <a *ngIf="index !== 'yzz'&&index !== 'zh'" (click)="showUploadModal(item)" href="javascript:void(0)" title="上传" type="file">
                                  <i class="glyphicon glyphicon-open"></i>
                                </a>
                                <a (click)="downLoadFile(item)" href="javascript:void(0)" title="下载">
                                  <i class="glyphicon glyphicon-download-alt"></i>
                                </a>
                                <a (click)="showHistoryVersion(item)" class="remove" href="javascript:void(0)" title="查看全部版本">
                                  <i class="glyphicon glyphicon-list-alt"></i>
                                </a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <!-- 历史附件结束 -->
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="tab-pane" id="tab_7">
              <div style="overflow-x:scroll;">
                <table id="example2" class=" table table-bordered table-keep-line table-hover table-striped">
                  <thead>
                    <tr>
                      <th class="width-20">投资经理名称</th>
                      <th class="width-20">类别</th>
                      <th class="width-10">是否助理</th>
                      <th class="width-10">是否报客户</th>
                      <th class="width-10">是否有附件</th>
                      <th class="width-15">开始日期</th>
                      <th class="width-15">结束日期</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr *ngFor="let item of otmManagerList" style="text-align: center; vertical-align: middle; ">
                      <td class="short_name" [attr.title]="item.sManagerName">{{item.sManagerName}}</td>
                      <td class="short_name" [attr.title]="item.sType">{{item.sType}}</td>
                      <!-- <td>
                        <span title="是" *ngIf="item.sIsAssistant==1">是</span>
                        <span title="否" *ngIf="item.sIsAssistant==0 || item.sIsAssistant==null">否</span>
                      </td>
                      <td>
                        <span *ngIf="item.sIsReport==1">是</span>
                        <span *ngIf="item.sIsReport==0 || item.sIsReport==null">否</span>
                      </td>
                      <td>
                        <span *ngIf="item.sHaveAttach==1">是</span>
                        <span *ngIf="item.sHaveAttach==0 || item.sHaveAttach==null">否</span>
                      </td> -->
                      <td class="short_name" [attr.title]="item.sIsAssistant">{{item.sIsAssistant}}</td>
                      <td class="short_name" [attr.title]="item.sIsReport">{{item.sIsReport}}</td>
                      <td class="short_name" [attr.title]="item.sHaveAttach">{{item.sHaveAttach}}</td>
                      <td class="short_name" [attr.title]="item.dBegin">{{item.dBegin}}</td>
                      <td class="short_name" [attr.title]="item.dEnd">{{item.dEnd}}</td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <div class="box-footer clearfix">
                <app-pagination [currentPageNum]="otmManagerListPageInfo.currentPageNum" [pagesShow]="" [totalPages]="otmManagerListPageInfo.totalPages"
                  (pageChanged)="otmManagerPageNavigation($event)">
                  <div class="pull-left pagination-detail" data-pagination-additional="true">
                    <span class="pagination-info">
                      当前显示第{{otmManagerListPageInfo.startRow}}到第{{otmManagerListPageInfo.endRow}}条，总共{{otmManagerListPageInfo.total}}条，
                    </span>
                    <span class="page-list">
                      每页记录
                      <span class="btn-group dropup">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                          <span class="page-size">{{otmManagerListPageInfo.pageSize}}</span>
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                          <li *ngFor="let i of otmManagerListPageInfo.pageList" role="menuitem" [class.active]="otmManagerListPageInfo.pageSize === i"
                            (click)="otmManagerPagesizeChange(i)">
                            <a>{{i}}</a>
                          </li>
                        </ul>
                      </span>条
                    </span>
                  </div>
                </app-pagination>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- 历史附件modal -->
<div class="modal fade in" id="detail-his-list-modal" style="display: none; padding-left: 0px;">
  <!--模态框-->
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button class="close" data-dismiss="modal">×</button>
        <h4>历史附件</h4>
      </div>
      <div class="modal-body" id="fileVersionListModalBody">
        <div class="bootstrap-table">
          <div class="fixed-table-toolbar"></div>
          <div class="fixed-table-container" style="padding-bottom: 0px;">
            <div class="fixed-table-header" style="display: none;">
              <table></table>
            </div>
            <div class="fixed-table-body">
              <table id="fileVersion-listTable" class="table  table-hover table-striped" style="border-top-width:0px;border-left-width:0px;">
                <thead>
                  <tr>
                    <th class="width-20">附件类型</th>
                    <th class="width-25">附件名</th>
                    <th class="width-10">附件类型</th>
                    <th class="width-12">上传者</th>
                    <th class="width-15">上传时间</th>
                    <th class="width-13">操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr *ngFor="let item of fileHistoryData">
                    <td class="short_name" [attr.title]="item.sAttachType">{{item.sAttachType}}</td>
                    <td class="short_name" [attr.title]="item.sAttachName">{{item.sAttachName}}</td>
                    <td class="short_name" [attr.title]="item.fileType">{{item.fileType}}</td>
                    <td class="short_name" [attr.title]="item.sCreator">{{item.sCreator}}</td>
                    <td class="short_name" [attr.title]="item.dCreateTime">{{item.dCreateTime}}</td>
                    <td>
                      <a (click)="downLoadFile(item)" class="glyphicon glyphicon-download-alt downloadlink fileVersion-list-glyphicon" target="_blank"
                        title="下载" alt="下载"></a>
                      <a *ngIf="index!=='yzz'" (click)="delFile(item)" class="glyphicon glyphicon-trash fileVersion-list-glyphicon" href="javascript:void(0)"
                        title="删除" alt="删除"></a>
                    </td>
                  </tr>

                </tbody>
              </table>
            </div>
            <div class="fixed-table-footer" style="display: none;">
              <table>
                <tbody>
                  <tr></tr>
                </tbody>
              </table>
            </div>

          </div>
        </div>
        <div class="clearfix"></div>
      </div>
      <div class="modal-footer">
        <div class="form-group">
          <div class="col-sm-4 col-sm-offset-3">
            <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- end历史附件modal -->

<!-- 上传资料 start -->
<div class="modal fade" id="uploadModel">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button (click)="clearFileQueue()" type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">上传文件</h4>
      </div>
      <div class="modal-body">
        <form class="form-inline">
          <div class="form-group">
            <label for="fileInput">请选择要上传的文件：</label>
            <input type="file" title="{{fileName}}" style="height:45px!important" id="file" name="file" (change)="getFileName($event.target.value)"
              class="form-control filenamex" id="fileInput" ng2FileSelect [uploader]="uploader" (change)="selectedFileOnChanged($event)">
            <!-- 选择文件默认支持选择单个文件，如需支持文件多选，请在标签中添加multiple属性 -->
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="clearFileQueue()" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-primary" [disabled]="!fileStatus" (click)="uploadFile()">上传</button>
      </div>
    </div>
  </div>
</div>

<!-- 文件上传进度 -->
<div class="modal fade" id="progress">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">

      </div>
      <div class="modal-body">
        <form class="form-inline" style="text-align:center;">
          <div style="margin-top:35px;margin-bottom:35px;">文件上传中...</div>
        </form>
      </div>
      <div class="modal-footer">

      </div>
    </div>
  </div>
</div>